#!/bin/bash
netcat=/usr/local/bin/netcat
while((1))
do
  $netcat -lp6601 > /dev/ttyS0
done&

while((1))
do
  $netcat -lp6602 > /dev/lp0
done&
